<?php
namespace app\index\model;

use think\Model;

class User extends Model
{
    public function getCreateTimeAttr($val){
        return date('Y-m-d', $val);
    }
}